//
//  E7Robot.cpp
//  EndlessBattle
//
//  Created by cc on 12-3-19.
//  Copyright (c) 2012年 PalmGame. All rights reserved.
//

#include "E7Robot.h"

#include "E7Logic.h"

CE7Robot::CE7Robot()
{
    m_nID = -1 ;
}

CE7Robot::~CE7Robot()
{
}

bool CE7Robot::Create(int nID, bool isturn)
{
    if (-1 != m_nID)
    {
        printf("robot is created [%d] [%d]\n", m_nID, nID) ;
        return false ;
    }

    m_nID = nID ;
    m_pAI = new CE7AIFunc(m_nID) ;

    return true ;
}

bool CE7Robot::Destroy()
{
    return true ;
}

void CE7Robot::Process()
{
    m_pAI->RunAI() ;
}


























